<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title><?php if($meta_title != ''): echo ($meta_title); ?>-<?php endif; echo C('website.title');?></title>
<meta name="keywords" content="<?php echo C('website.keywords');?>"/>
<meta name="description" content="<?php echo C('website.desc');?>"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="/public/Home/dist/css/zui.css">
<link rel="stylesheet" href="/public/Home/dist/css/zui-theme.css">
<link rel="stylesheet" href="/public/Home/common/css/style.css">
<script type="text/javascript" src="/public/Home/dist/lib/jquery/jquery.js"></script>
<script type="text/javascript" src="/public/Home/dist/js/zui.js"></script>
<script type="text/javascript" src="/public/Home/dist/lib/layer/layer.js"></script>
<link rel="stylesheet" type="text/css" href="/public/Home/assets/css/simditor.css" />
<script type="text/javascript" src="/public/Home/assets/js/module.min.js"></script>
<script type="text/javascript" src="/public/Home/assets/js/hotkeys.min.js"></script>
<script type="text/javascript" src="/public/Home/assets/js/uploader.min.js"></script>
<script type="text/javascript" src="/public/Home/assets/js/simditor.min.js"></script>


</head>
<body>
<div class="header-index-fix"></div>
<div class="header">
    <div class="container-fixed">
        <div class="header-left">
            <a href="#"><img src="<?php echo getImgidpath(C('website.logo'));?>" alt=""></a>
        </div>
        <div class="header-right">
            <ul class="header-nav">
                <li <?php if($mark == 'index'): ?>class="active"<?php endif; ?>>
                    <a href="<?php echo U('index/index');?>">项目大厅</a>
                </li>
                <li <?php if($mark == 'rank'): ?>class="active"<?php endif; ?>>
                    <a href="<?php echo U('rank/index');?>">排行榜</a>
                </li>
                <li <?php if($mark == 'article'): ?>class="active"<?php endif; ?>>
                    <a href="<?php echo U('article/index');?>">资讯</a>
                </li>
                <li <?php if($mark == 'company'): ?>class="dropdown dropdown-hover active"<?php else: ?>class="dropdown dropdown-hover"<?php endif; ?>>
                    <a href="#" data-toggle="dropdown">企业服务 <span class="drop-arrow"></span></a>
                    <ul class="dropdown-menu drop-nav">
                        <li>
                            <a href="<?php echo U('bug/index');?>">漏洞认领</a>
                        </li>
                        <li>
                            <a href="<?php echo U('company/index');?>">入驻企业</a>
                        </li>
                    </ul>
                </li>
                <li class="dropdown dropdown-hover">
                    <a href="#" data-toggle="dropdown">白帽服务 <span class="drop-arrow"></span></a>
                    <ul class="dropdown-menu drop-nav">
                        <li>
                            <a href="<?php echo U('index/index');?>">技术知识分享</a>
                        </li>
                        <li>
                            <a href="<?php echo U('index/index');?>">等级与福利</a>
                        </li>
                    </ul>
                </li>
                <li>
                    <a href="<?php echo U('bbs/index');?>">论坛</a>
                </li>
            </ul>
            <div class="header-user">
                <div class="user-btns">
                    <div class="dropdown">
                        <button class="btn btn-primary" type="button" data-toggle="dropdown">提交 <span class="caret"></span></button>
                        <ul class="dropdown-menu pull-right">
                            <li><a href="<?php echo U('bug/post');?>">提交漏洞</a></li>
                            <li class="divider"></li>
                            <li><a href="<?php echo U('project/post');?>">提交项目</a></li>
                        </ul>
                    </div>
                </div>
                <div class="user-login">
                    <?php if($_SESSION['user']== null): ?><a href="<?php echo U('user/login');?>">登录</a>
                    <a href="<?php echo U('user/register');?>">注册</a>
                    <?php else: ?>
                        <a href="<?php echo U('user/member');?>"><?php echo ($_SESSION['user']['username']); ?></a><?php endif; ?>
                </div>
            </div>
        </div>
    </div>
</div>


    <div class="comments" style="width:60%;margin:0 auto;">
        <div class="container" style="margin-top: 10px;">
            <div id="myNiceCarousel" class="carousel slide" data-ride="carousel" style="-webkit-box-shadow:0 0 10px #ccc;-moz-box-shadow:0 0 10px #ccc;box-shadow:0 0 10px #ccc;">
                <!-- 圆点指示器 -->
                <ol class="carousel-indicators">
                    <li data-target="#myNiceCarousel" data-slide-to="0" class="active"></li>
                    <li data-target="#myNiceCarousel" data-slide-to="1"></li>
                    <li data-target="#myNiceCarousel" data-slide-to="2"></li>
                </ol>

                <!-- 轮播项目 -->
                <div class="carousel-inner">
                    <div class="item active">
                        <img alt="First slide" src="http://zui.sexy/docs/img/slide1.jpg">
                        <div class="carousel-caption">
                            <h3>我是第一张幻灯片</h3>
                            <p>:)</p>
                        </div>
                    </div>
                    <div class="item">
                        <img alt="Second slide" src="http://zui.sexy/docs/img/slide2.jpg">
                        <div class="carousel-caption">
                            <h3>我是第二张幻灯片</h3>
                            <p>0.0</p>
                        </div>
                    </div>
                    <div class="item">
                        <img alt="Third slide" src="http://zui.sexy/docs/img/slide3.jpg">
                        <div class="carousel-caption">
                            <h3>我是第三张幻灯片</h3>
                            <p>最后一张咯~</p>
                        </div>
                    </div>
                </div>
                <!-- 项目切换按钮 -->
                <a class="left carousel-control" href="#myNiceCarousel" data-slide="prev">
                    <span class="icon icon-chevron-left"></span>
                </a>
                <a class="right carousel-control" href="#myNiceCarousel" data-slide="next">
                    <span class="icon icon-chevron-right"></span>
                </a>
            </div>
        </div>
        <div class="container">
            <div class="col-md-9"  style="-webkit-box-shadow:0 0 10px #ccc;-moz-box-shadow:0 0 10px #ccc;box-shadow:0 0 10px #ccc;margin-top:20px; ">
                <div class="list list-condensed">

                    <div class="items items-hover">
                        <?php if(is_array($list)): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><div class="item">
                            <div class="item-heading">
                                <div class="pull-right"> <span class="text-muted"><?php echo (date('Y-m-d H:i:s',$vo["ctime"])); ?></span> &nbsp;</div>
                                <h4><a href="<?php echo U('bbs/detail');?>?id=<?php echo ($vo["id"]); ?>"><?php echo ($vo["title"]); ?></a></h4>
                            </div>
                            <div class="item-content">
                                <div class="text"><a href="<?php echo U('bbs/detail');?>?id=<?php echo ($vo["id"]); ?>" style="color:#020202;"><?php echo (substr($vo["content"],0,204)); ?></a></div>
                            </div>
                        </div><?php endforeach; endif; else: echo "" ;endif; ?>
                    </div>
                    <footer style="text-align: center;">
                        <?php echo ($page); ?>
                    </footer>
                </div>
            </div>
            <div class="col-md-3" style="margin-top:20px;">
               <div style="-webkit-box-shadow:0 0 10px #ccc;-moz-box-shadow:0 0 10px #ccc;box-shadow:0 0 10px #ccc;width:100%;margin-left:4%;">
                   <div class="container">
                       <a href="<?php echo U('bbs/add');?>" class="btn btn-primary" style="margin:20px auto;width:100%;font-size:26px;"><i class="icon icon-pencil" style="font-size:26px;"></i>  投稿</a>
                       <div class="panel" style="padding-left:10px;">
                           <div class="panel-heading">
                               板块推荐
                           </div>
                           <div class="panel-body">
                               <?php if(is_array($titles)): $i = 0; $__LIST__ = $titles;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><a href="<?php echo U('bbs/index');?>?id=<?php echo ($vo["id"]); ?>" class="btn btn-primary" style="margin:5px;width:40%;><i class="icon icon-pencil"></i>  <?php echo ($vo["title"]); ?></a><?php endforeach; endif; else: echo "" ;endif; ?>
                           </div>
                       </div>
                       <div class="panel" style="padding-left:10px;">
                           <div class="panel-heading">
                               热门推荐
                           </div>
                           <style>
                               .panel-body ul li{
                                   padding:5px;
                               }
                           </style>
                           <div class="panel-body">
                               <ul>
                                   <?php if(is_array($hot)): $i = 0; $__LIST__ = $hot;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><li><a href="<?php echo U('bbs/detail');?>?id=<?php echo ($vo["id"]); ?>"><?php echo ($vo["title"]); ?></a></li><?php endforeach; endif; else: echo "" ;endif; ?>
                               </ul>
                           </div>
                       </div>

                       <div class="panel" style="padding-left:10px;">
                           <div class="panel-heading">
                               活动推荐
                           </div>
                           <div class="panel-body" style="text-align:center;">
                               <img src="http://zui.sexy/docs/img/img1.jpg" width="200px" height="200px" class="img-rounded" alt="圆角图片" style="margin:10px 0;">
                           </div>
                       </div>


                   </div>
               </div>
            </div>
        </div>
    </div>

<div class="footer">
    <div class="container">
        <div class="footer-list">
            <ul>
                <li><a href="<?php echo U('index/index');?>" target="_blank">项目大厅</a></li>
                <li><a href="<?php echo U('rank/index');?>" target="_blank">排行榜</a></li>
                <li><a href="<?php echo U('user/index');?>" target="_blank">个人主页</a></li>
                <li><a href="#" target="_blank">帮助中心</a></li>
            </ul>
        </div>

        <div class="footer-bom">
        	<div>
        		 <?php echo C('website.recard');?>	<span>&nbsp;&nbsp;&nbsp;&nbsp;</span>  <?php echo C('website.copyright');?>
        	</div>
        </div>
    </div>
</div>


</body>
</html>